/**
 * Project Name:BGI_DX
 * File Name:PageVo.java
 * Package Name:com.bgi.dx.common.dto
 * Date:2014-10-21下午08:50:17
 * Copyright (c) 2014, BGI_DX All Rights Reserved.
 *
*/

package com.bgi.uims.common.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassName:PageVo <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2014-10-21 下午08:50:17 <br/>
 * @author   fukun
 * @version  
 * @since    JDK 1.7
 * @see 	 
 */
public class PageVo {

	/**
	 * list集合
	 */
	@SuppressWarnings("rawtypes")
	private List rows;
	/**
	 * 返回状态
	 * 返回false页面会显示加载失败
	 */
	private boolean success;
	/**
	 * //交互消息
	 */
	private String msg;
	/**
	 * //总记录数
	 */
	private Long total;
	/**
	 * 返回一个对象
	 */
	private Object object;
	
	public PageVo(){
		
	}
	@SuppressWarnings("rawtypes")
	public PageVo(Long total,List rows)
	{
		this.total=total;
		this.rows=rows;
	}
	
	@SuppressWarnings("rawtypes")
	public List getRows() {
		if(rows==null)
		{
			rows=new ArrayList();
		}
		return rows;
	}
	@SuppressWarnings("rawtypes")
	public void setRows(List rows) {
		this.rows = rows;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public Object getObject() {
		return object;
	}
	public void setObject(Object object) {
		this.object = object;
	}
	
}

